import Vue from 'vue'
import VueRouter from 'vue-router'
Vue.use(VueRouter)
const routes = [
    {
        path: '/',
        name: 'Loading',
        component: () => import('../views/Loading.vue')
    },
    {
        path: '/detail',
        name: 'Detail',
        component: () => import('../views/Detail.vue')
    },
    {
        path: '/home',
        name: 'Home',
        component: () => import('../views/Home.vue')
    },
    {
        path: '/musicHome',
        name: 'MusicHome',
        component: () => import('../views/MusicHome.vue')
    },
    {
        path: '/musicDetail',
        name: 'MusicDetail',
        component: () => import('../views/MusicDetail.vue')
    }
]

const router = new VueRouter({
    routes,
    mode: 'history'
})

export default router